package com.jsoft.webservice;

import com.jsoft.dto.PlaceDto;
import com.jsoft.service.PlaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.context.support.SpringBeanAutowiringSupport;

import javax.jws.WebParam;
import javax.jws.WebService;
import java.util.List;

/**
 * Date: 16.09.13
 * Time: 17:12
 */

@WebService
public class PlaceWebServiceImpl extends SpringBeanAutowiringSupport implements PlaceWebService {
    @Autowired
    private PlaceService placeService;

    @Override
    public List<PlaceDto> getPlaceListBySectorId(@WebParam(name = "sectorId") Integer sectorId) {
        return placeService.getPlaceListBySectorId(sectorId);
    }
}
